/*
 * @Author: 李红赟 1367194005@qq.com
 * @Date: 2025-04-28 08:29:20
 * @LastEditors: 李红赟 1367194005@qq.com
 * @LastEditTime: 2025-04-28 10:06:22
 * @FilePath: \signinpod-front\src\api\departure\discipline.js
 * @Description: 
 * 
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询违纪记录列表
export function listDiscipline(query) {
  return request({
    url: '/dorm/violate/list',
    method: 'get',
    params: query
  })
}

// 查询违纪记录详细
export function getDiscipline(violateId) {
  return request({
    url: '/dorm/violate/' + violateId,
    method: 'get'
  })
}

// 新增违纪记录
export function addDiscipline(data) {
  return request({
    url: '/dorm/violate',
    method: 'post',
    data: data
  })
}

// 修改违纪记录
export function updateDiscipline(data) {
  return request({
    url: '/dorm/violate',
    method: 'put',
    data: data
  })
}

// 删除违纪记录
export function delDiscipline(id) {
  return request({
    url: '/dorm/violate/' + id,
    method: 'delete'
  })
}

// 导出违纪记录
export function exportDiscipline(query) {
  return request({
    url: '/dormitory/discipline/export',
    method: 'get',
    params: query
  })
}